﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Photograp.Models
{
    /// <summary>
    ///  User Profile entity
    /// </summary>
    [Table("UserProfiles")]
    public class UserProfile
    {
        /// <summary>
        /// Identity
        /// </summary>
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int UserProfileId { get; set; }

        /// <summary>
        /// The UserName
        /// </summary>
        [Required]
        [StringLength(50)]
        public string UserName { get; set; }

        /// <summary>
        ///  Email for the User
        /// </summary>
        /// <remarks>Ignoring this field by not using DataMember</remarks>
        [Required]
        [DataType(DataType.EmailAddress)]
        [StringLength(200)]
        public string Email { get; set; }
    }
}